package com.qianyu.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qianyu.project.entity.Budget;
import com.qianyu.project.entity.Directly;
import com.qianyu.project.entity.DirectlyType;
import com.qianyu.project.mapper.provider.cyy.DirectlyMapperProvider;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;


import java.util.List;
import java.util.Map;

@Repository
public interface DirectlyMapper extends BaseMapper<Directly> {
    @SelectProvider(method = "getDirectlyList",value = DirectlyMapperProvider.class)
    List<Budget> getDirectlyList(Map<String,Object> map);
    @DeleteProvider(method = "deleteDirectly",value = DirectlyMapperProvider.class)
    void deleteDirectly(String id);
    @Select("select * from directly_type")
    List<DirectlyType> getlist1();
    @SelectProvider(method = "getDirectlyList1",value = DirectlyMapperProvider.class)
    List<Budget> getDirectlyList1(Map<String, Object> map);
}
